<?php if (!defined('THINK_PATH')) exit();?><!-- public:header 以下内容 -->
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>网站后台管理中心- Powered by 74cms.com</title>
	<link rel="shortcut icon" href="<?php echo C('qscms_site_dir');?>favicon.ico"/>
	<meta name="author" content="骑士CMS" />
	<meta name="copyright" content="74cms.com" />
	<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">  -->
	<link href="__ADMINPUBLIC__/css/common.css?v=<?php echo strtotime('today');?>" rel="stylesheet" type="text/css">
	<script src="__ADMINPUBLIC__/js/jquery.min.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.highlight-3.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.vtip-min.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.modal.dialog.js"></script>
	<script type="text/javascript" src="__ADMINPUBLIC__/js/laydate/laydate.js"></script>
	<!--[if lt IE 9]>
	<script type="text/javascript" src="__ADMINPUBLIC__/js/PIE.js"></script>
	<script type="text/javascript">
		(function ($) {
			$.pie = function (name, v) {
				// 如果没有加载 PIE 则直接终止
				if (!PIE) return false;
				// 是否 jQuery 对象或者选择器名称
				var obj = typeof name == 'object' ? name : $(name);
				// 指定运行插件的 IE 浏览器版本
				var version = 9;
				// 未指定则默认使用 ie10 以下全兼容模式
				if (typeof v != 'number' && v < 9) {
					version = v;
				}
				// 可对指定的多个 jQuery 对象进行样式兼容
				if ($.browser.msie && obj.size() > 0) {
					if ($.browser.version * 1 <= version * 1) {
						obj.each(function () {
							PIE.attach(this);
						});
					}
				}
			}
		})(jQuery);
		if ($.browser.msie) {
			$.pie('.pie_about');
		};
	</script>
	<![endif]-->
	<script src="__ADMINPUBLIC__/js/jquery.disappear.tooltip.js"></script>
	<script src="__ADMINPUBLIC__/js/common.js"></script>
	<script>
		var URL = '/index.php/admin/crons',
			SELF = '/index.php?m=admin&amp;c=crons&amp;a=add',
			ROOT_PATH = '/index.php/admin',
			APP	 =	 '/index.php';

		var qscms = {
			district_level : "<?php echo C('qscms_category_district_level');?>",
			default_district : "<?php echo C('qscms_default_district');?>"
		};
	</script>
	<?php echo ($synsitegroupunbindmobile); ?>
	<?php echo ($synsitegroupregister); ?>
	<?php echo ($synsitegroupedit); ?>
	<?php echo ($synsitegroup); ?>
</head>
<body>

<!-- public:header 以上内容 -->
<?php if(empty($menu_title)): ?><div class="allpagetop">后台管理中心<strong>/</strong>首页</div>
	<?php else: ?>
	<div class="allpagetop"><?php echo ($menu_title); ?><strong>/</strong><?php echo ($sub_menu_title); ?></div><?php endif; ?>
<div class="mains">
	<div class="h1tit">
		<div class="h1">
            <?php if($sub_menu['pageheader']): echo ($sub_menu["pageheader"]); ?>
                <?php else: ?>
                <!--欢迎登录 <?php echo C('qscms_site_name');?> 管理中心！--><?php endif; ?>
        </div>
        <?php if(!empty($sub_menu['menu'])): ?><div class="topnav">
                <?php if(is_array($sub_menu['menu'])): $i = 0; $__LIST__ = $sub_menu['menu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a href="<?php echo U($val['module_name'].'/'.$val['controller_name'].'/'.$val['action_name']); echo ($val["data"]); if($isget and $_GET): echo get_first(); endif; if($_GET['_k_v']): ?>&_k_v=<?php echo (_I($_GET['_k_v'])); endif; ?>" class="<?php echo ($val["class"]); ?>"><?php echo ($val["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                <div class="clear"></div>
            </div><?php endif; ?>
		<div class="clear"></div>
	</div>
 <div class="toptip">
    <div class="toptit">提示：</div>
    <p>计划任务是一项使系统在规定时间自动执行某些特定任务的功能，在需要的情况下，您也可以方便的将其用于功能的扩展。</p>
    <p>计划任务是与系统核心紧密关联的功能特性，不当的设置可能造成功能的隐患，严重时可能导致网站无法正常运行。</p>
</div>
<div class="toptit">添加计划任务</div>
<form action="<?php echo U('crons/add');?>" method="post"  name="FormData" id="FormData" >
    <div class="form_main width120">
        <div class="fl">名称：</div>
        <div class="fr">
            <input name="name" type="text" maxlength="20" class="input_text_default middle" value=""/>
            <label class="no-fl-note">设置本任务的任务类名称</label>
        </div>
        <div class="fl">任务脚本类名称：</div>
        <div class="fr">
            <input name="filename" type="text" maxlength="30" class="input_text_default small" style="width:150px;" value=""/>
            <label class="no-fl-note">设置本任务的执行程序类名称，请勿包含路径，程序脚本统一存放于 ./app/Lib/Cron/ 目录中</label>
        </div>
        <div class="fl">每周：</div>
        <div class="fr">
            <div class="select_input_new w400 flo J_hoverinput J_dropdown J_listitme_parent">
                <span class="J_listitme_text">请选择</span>
                <div class="dropdowbox_sn J_dropdown_menu">
                    <div class="dropdow_inner_sn">
                        <ul class="nav_box">
                            <li><a class="J_listitme" href="javascript:;" data-code="-1">*</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="0">日</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="1">一</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="2">二</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="3">三</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="4">四</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="5">五</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="6">六</a></li>
                        </ul>
                    </div>
                </div>
                <input class="J_listitme_code" name="weekday" id="weekday" type="hidden" value="" />
            </div>
            <!-- <select name="weekday"  class="input_text_200_select">
                <option value="-1" selected="selected">*</option>
                <option value="0">日</option>
                <option value="1">一</option>
                <option value="2">二</option>
                <option value="3">三</option>
                <option value="4">四</option>
                <option value="5">五</option>
                <option value="6">六</option>
            </select> -->
            <label class="no-fl-note">设置星期几执行本任务，“*”为不限制，本设置会覆盖下面的“日”设定</label>
            <div class="clear"></div>
        </div>
        <div class="fl">每月：</div>
        <div class="fr">
            <div class="select_input_new w400 flo J_hoverinput J_dropdown J_listitme_parent">
                <span class="J_listitme_text">请选择</span>
                <div class="dropdowbox_sn J_dropdown_menu">
                    <div class="dropdow_inner_sn">
                        <ul class="nav_box">
                            <li><a class="J_listitme" href="javascript:;" data-code="-1">*</a></li>
                            <?php $__FOR_START_17874__=1;$__FOR_END_17874__=31;for($i=$__FOR_START_17874__;$i < $__FOR_END_17874__;$i+=1){ ?><li><a class="J_listitme" href="javascript:;" data-code="<?php echo ($i); ?>"><?php echo ($i); ?> 日</a></li><?php } ?>
                        </ul>
                    </div>
                </div>
                <input class="J_listitme_code" name="day" id="day" type="hidden" value="" />
            </div>
            <!-- <select name="day" class="input_text_200_select">
                <option value="-1" selected="selected">*</option>
                <?php $__FOR_START_2239__=1;$__FOR_END_2239__=31;for($i=$__FOR_START_2239__;$i < $__FOR_END_2239__;$i+=1){ ?><option value="<?php echo ($i); ?>"  ><?php echo ($i); ?> 日</option><?php } ?>
            </select> -->
            <label class="no-fl-note sin_text">设置哪一日执行本任务，“*”为不限制</label>
            <div class="clear"></div>
        </div>
        <div class="fl">小时：</div>
        <div class="fr">
            <div class="select_input_new w400 flo J_hoverinput J_dropdown J_listitme_parent">
                <span class="J_listitme_text">请选择</span>
                <div class="dropdowbox_sn J_dropdown_menu">
                    <div class="dropdow_inner_sn">
                        <ul class="nav_box">
                            <li><a class="J_listitme" href="javascript:;" data-code="-1">*</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="0">0 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="1">1 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="2">2 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="3">3 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="4">4 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="5">5 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="6">6 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="7">7 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="8">8 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="9">9 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="10">10 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="11">11 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="12">12 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="13">13 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="14">14 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="15">15 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="16">16 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="17">17 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="18">18 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="19">19 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="20">20 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="21">21 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="22">22 时</a></li>
                            <li><a class="J_listitme" href="javascript:;" data-code="23">23 时</a></li>
                        </ul>
                    </div>
                </div>
                <input class="J_listitme_code" name="hour" id="hour" type="hidden" value="" />
            </div>
            <!-- <select name="hour" class="input_text_200_select">
                <option value="-1">*</option>
                <option value="0" selected="selected">0 时</option>
                <option value="1">1 时</option>
                <option value="2">2   时</option>
                <option value="3">3 时</option>
                <option value="4">4 时</option>
                <option value="5">5 时</option>
                <option value="6">6 时</option>
                <option value="7">7   时</option>
                <option value="8">8 时</option>
                <option value="9">9 时</option>
                <option value="10">10 时</option>
                <option value="11">11 时</option>
                <option value="12">12   时</option>
                <option value="13">13 时</option>
                <option value="14">14 时</option>
                <option value="15">15 时</option>
                <option value="16">16 时</option>
                <option value="17">17   时</option>
                <option value="18">18 时</option>
                <option value="19">19 时</option>
                <option value="20">20 时</option>
                <option value="21">21 时</option>
                <option value="22">22   时</option>
                <option value="23">23 时</option>
            </select> -->
            <label class="no-fl-note sin_text">设置哪一小时执行本任务，“*”为不限制</label>
            <div class="clear"></div>
        </div>
        <div class="fl">分钟：</div>
        <div class="fr">
            <input name="minute" type="text" maxlength="20" class="input_text_default middle" value=""/>
            <label class="no-fl-note">设置哪一分钟执行本任务，留空为不限制</label>
        </div>
        <div class="fl">可用：</div>
        <div class="fr">
            <div data-code="0,1" class="imgchecked_small select"><input name="available" type="hidden" value="1" /></div>
            <div class="note">设置不可用则任务不会执行</div>
            <div class="clear"></div>
        </div>
        <div class="fl"></div>
        <div class="fr">
            <input type="submit" name="Submit" value="确定提交" class="admin_submit"   />
            
            <input name="submit22" type="button" class="admin_submit"    value="返 回" onclick="window.location='<?php echo U('crons/index');?>'"/>
        </div>
        <div class="clear"></div>
    </div>
</form>
</div>
<!-- public:footer 以下内容 -->
<div class="footer link_blue">
    Powered by <a href="https://www.74cms.com" target="_blank"><span style="color:#009900">74</span><span
        style="color: #FF3300">cms</span></a> v<?php echo C('QSCMS_VERSION');?>
</div>
<div class="layui-floatmenu">
    <div class="J_suggest item" data-url="<?php echo U('Suggest/add');?>"></div>
    <div class="J_suggestList list item" data-url="<?php echo U('Suggest/index');?>">
      <?php if($suggest): ?><span></span><?php endif; ?>
    </div>
  </div>
<script src="__ADMINPUBLIC__/js/layui.js"></script>
<!-- public:footer 以上内容 -->
<script>
  layui.use(['form', 'element'], function(){
  var element = layui.element;
  var form = layui.form;
  var layer = layui.layer;
  var $ = layui.jquery;
  var loading = layer.load(0, {shade: [0.3,'#fff'],time:500});
  $('.J_suggest').click(function(){
    var url = $(this).data('url');
    $.getJSON(url,function(result){
      layer.open({
          title:'反馈',
          type: 1,
          area: ['800px', 'auto'], //宽高
          content: result.data
      });
    });
  });
  $('.J_suggestList').click(function(){
    var url = $(this).data('url');
    var f = $(this).find('span');
    $.getJSON(url,function(result){
      layer.open({
          title:'历史反馈记录',
          type: 1,
          area: ['800px', '690px'], //宽高
          content: result.data
      });
      f.remove();
    });
  });
});
</script>
<script type="text/javascript" src="__ADMINPUBLIC__/js/jquery.listitem.js"></script>
<script type="text/javascript" src="__ADMINPUBLIC__/js/jquery.dropdown.js"></script>
</body>
</html>